Integrand size = 25, antiderivative size = 37 \[ \int \sqrt {\csc (e+f x)} \sqrt {a+a \csc (e+f x)} \, dx=-\frac {2 \sqrt {a} \text {arcsinh}\left (\frac {\sqrt {a} \cot (e+f x)}{\sqrt {a+a \csc (e+f x)}}\right )}{f} \]
[Out]
Time = 0.07 (sec) , antiderivative size = 37, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.080, Rules used = {3886, 221} \[ \int \sqrt {\csc (e+f x)} \sqrt {a+a \csc (e+f x)} \, dx=-\frac {2 \sqrt {a} \text {arcsinh}\left (\frac {\sqrt {a} \cot (e+f x)}{\sqrt {a \csc (e+f x)+a}}\right )}{f} \]
[In]
[Out]
Rule 221
Rule 3886
Rubi steps \begin{align*} \text {integral}& = -\frac {2 \text {Subst}\left (\int \frac {1}{\sqrt {1+\frac {x^2}{a}}} \, dx,x,\frac {a \cot (e+f x)}{\sqrt {a+a \csc (e+f x)}}\right )}{f} \\ & = -\frac {2 \sqrt {a} \text {arcsinh}\left (\frac {\sqrt {a} \cot (e+f x)}{\sqrt {a+a \csc (e+f x)}}\right )}{f} \\ \end{align*}
Leaf count is larger than twice the leaf count of optimal. \(108\) vs. \(2(37)=74\).
Time = 0.89 (sec) , antiderivative size = 108, normalized size of antiderivative = 2.92 \[ \int \sqrt {\csc (e+f x)} \sqrt {a+a \csc (e+f x)} \, dx=\frac {2 \cot (e+f x) \sqrt {a (1+\csc (e+f x))} \left (\log (1+\csc (e+f x))-\log \left (\sqrt {\csc (e+f x)}+\csc ^{\frac {3}{2}}(e+f x)+\sqrt {\cot ^2(e+f x)} \sqrt {1+\csc (e+f x)}\right )\right )}{f \sqrt {\cot ^2(e+f x)} \sqrt {1+\csc (e+f x)}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(97\) vs. \(2(31)=62\).
Time = 2.51 (sec) , antiderivative size = 98, normalized size of antiderivative = 2.65
method | result | size |
default | \(-\frac {\sin \left (f x +e \right ) \left (\operatorname {arcsinh}\left (\cot \left (f x +e \right )-\csc \left (f x +e \right )\right )+\operatorname {arctanh}\left (\frac {\sqrt {2}}{2 \sqrt {\frac {1}{1+\cos \left (f x +e \right )}}}\right )\right ) \sqrt {\csc \left (f x +e \right )}\, \sqrt {a \left (1+\csc \left (f x +e \right )\right )}\, \sqrt {2}}{f \left (\cos \left (f x +e \right )+\sin \left (f x +e \right )+1\right ) \sqrt {\frac {1}{1+\cos \left (f x +e \right )}}}\) | \(98\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 75 vs. \(2 (31) = 62\).
Time = 0.28 (sec) , antiderivative size = 283, normalized size of antiderivative = 7.65 \[ \int \sqrt {\csc (e+f x)} \sqrt {a+a \csc (e+f x)} \, dx=\left [\frac {\sqrt {a} \log \left (\frac {a \cos \left (f x + e\right )^{3} - 7 \, a \cos \left (f x + e\right )^{2} - 9 \, a \cos \left (f x + e\right ) + {\left (a \cos \left (f x + e\right )^{2} + 8 \, a \cos \left (f x + e\right ) - a\right )} \sin \left (f x + e\right ) + \frac {4 \, {\left (\cos \left (f x + e\right )^{3} + 3 \, \cos \left (f x + e\right )^{2} - {\left (\cos \left (f x + e\right )^{2} - 2 \, \cos \left (f x + e\right ) - 3\right )} \sin \left (f x + e\right ) - \cos \left (f x + e\right ) - 3\right )} \sqrt {a} \sqrt {\frac {a \sin \left (f x + e\right ) + a}{\sin \left (f x + e\right )}}}{\sqrt {\sin \left (f x + e\right )}} - a}{\cos \left (f x + e\right )^{3} + \cos \left (f x + e\right )^{2} + {\left (\cos \left (f x + e\right )^{2} - 1\right )} \sin \left (f x + e\right ) - \cos \left (f x + e\right ) - 1}\right )}{2 \, f}, \frac {\sqrt {-a} \arctan \left (\frac {{\left (\cos \left (f x + e\right )^{2} + 2 \, \sin \left (f x + e\right ) - 1\right )} \sqrt {-a} \sqrt {\frac {a \sin \left (f x + e\right ) + a}{\sin \left (f x + e\right )}}}{2 \, a \cos \left (f x + e\right ) \sqrt {\sin \left (f x + e\right )}}\right )}{f}\right ] \]
[In]
[Out]
\[ \int \sqrt {\csc (e+f x)} \sqrt {a+a \csc (e+f x)} \, dx=\int \sqrt {a \left (\csc {\left (e + f x \right )} + 1\right )} \sqrt {\csc {\left (e + f x \right )}}\, dx \]
[In]
[Out]
\[ \int \sqrt {\csc (e+f x)} \sqrt {a+a \csc (e+f x)} \, dx=\int { \sqrt {a \csc \left (f x + e\right ) + a} \sqrt {\csc \left (f x + e\right )} \,d x } \]
[In]
[Out]
Exception generated. \[ \int \sqrt {\csc (e+f x)} \sqrt {a+a \csc (e+f x)} \, dx=\text {Exception raised: TypeError} \]
[In]
[Out]
Timed out. \[ \int \sqrt {\csc (e+f x)} \sqrt {a+a \csc (e+f x)} \, dx=\int \sqrt {a+\frac {a}{\sin \left (e+f\,x\right )}}\,\sqrt {\frac {1}{\sin \left (e+f\,x\right )}} \,d x \]
[In]
[Out]